<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/manage/css/admin.css" />
		<link rel="stylesheet" href="__STATIC__/manage/js/layui/css/layui.css" />
		<script type="text/javascript" src="__STATIC__/manage/js/jquery.min.js"></script>
		{include file="inc/script" /}
		<script type="text/javascript" src="__STATIC__/manage/js/public.js"></script>
		<script type="text/javascript" src="__STATIC__/manage/js/layui/layui.js"></script>
	</head>

	<body>
		<div class="right-center height-at" style="overflow: auto;">
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
			  <legend>{$pageData.title}</legend>
			</fieldset>
			<form name="postForm" class="layui-form layui-form-pane" method="post" action="{:url('option.handle/save')}">
				
				<div class="layui-form-item">
				    <label class="layui-form-label">站点名称</label>
				    <div class="layui-input-block">
				      <input type="text" name="site_name" lay-verify="title" autocomplete="off" value="{$options.site_name}" class="layui-input">
				    </div>
				</div>
				<div class="layui-form-item" pane="">
				    <label class="layui-form-label">关闭前台</label>
				    <div class="layui-input-block">
				       <input type="checkbox" name="home_close" lay-skin="switch" value="0"  lay-filter="switchTest" lay-text="开启|关闭" checked="">
				    </div>
				</div>
				<div class="layui-form-item" pane="">
				    <label class="layui-form-label">提现总开关</label>
				    <div class="layui-input-block">
				      <input type="checkbox" name="withdraw_switch" lay-skin="switch" value="0"  lay-filter="switchTest" lay-text="开启|关闭" checked="">
				    </div>
				    
				</div>
				<div class="layui-form-item" pane="">
				    <label class="layui-form-label">充值总开关</label>
				    <div class="layui-input-block">
				      <input type="checkbox" name="charge_switch" lay-skin="switch" value="0"  lay-filter="switchTest" lay-text="开启|关闭" checked="">
				    </div>
		
				</div>
				<div class="layui-form-item" pane="">
				    <label class="layui-form-label">转账总开关</label>
				    <div class="layui-input-block">
				      <input type="checkbox" name="transfer_switch" lay-skin="switch" value="0"  lay-filter="switchTest" lay-text="开启|关闭" checked="">
				    </div>
				
				</div>
				<div class="layui-form-item" pane="">
				    <label class="layui-form-label">货币转换总开关</label>
				    <div class="layui-input-block">
				      <input type="checkbox" name="convert_switch" lay-skin="switch" value="0"  lay-filter="switchTest" lay-text="开启|关闭" checked="">
				    </div>
				 
				</div>
				<input type="hidden" name="token" value="{$token}">
				<div class="layui-form-item">
				    <div class="layui-input-block">
				      <button class="layui-btn" lay-submit="" lay-filter="demo1" onclick="save()">立即提交</button>
				      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
				    </div>
				</div>
			</form>
			
		</div>
		<script type="text/javascript">
		function save(){
			var postData = $("form[name=postForm]").serialize();
			$.ajax({
				'type':'post',
				'dataType':'json',
				'url':"{:url('option.handle/save')}",
				'data':postData,
				'success':function(data){
					alert(data.msg);
				}
			});
		}
		</script>
		<script>
			var saveSrc="{:url('option.handle/save')}"
		</script>
		<script type="text/javascript" src="__STATIC__/manage/js/option/show/index.js"></script>
	</body>
</html>
